package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

// autoconfig 会去读取数据源配置，而新建的项目还没有配置数据源
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) // 暂时去除数据库组件
//@SpringBootApplication
//@MapperScan("com.example.demo.mapper") // mybatis 扫描mapper文件的路径
@Slf4j
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
		log.info("start success");
	}

}

